package com.insight.config;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;

/**
 * 静态参数初始化配置类，用于加载OSS、邮件等相关静态配置参数。
 */
//@Component
@Data
public class StaticConfig {

    /**
     * OSS访问key
     */
    @Value("${jeecg.oss.accessKey}")
    private String accessKeyId;

    /**
     * OSS密钥
     */
    @Value("${jeecg.oss.secretKey}")
    private String accessKeySecret;

    /**
     * 邮件发送方
     */
    @Value(value = "${spring.mail.username}")
    private String emailFrom;

    /*
    @Bean
    public void initStatic() {
       DySmsHelper.setAccessKeyId(accessKeyId);
       DySmsHelper.setAccessKeySecret(accessKeySecret);
       EmailSendMsgHandle.setEmailFrom(emailFrom);
    }
    */

}
